package com.example.musicplayer.activity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.CheckBox;
import android.widget.TextView;

import com.example.musicplayer.utils.GetAllActivity;
import com.example.musicplayer.utils.ModifyActivity;
import com.example.musicplayer.R;
import com.example.musicplayer.utils.ShowuserActivity;


public class LoginPageActivity extends Activity {

    private Button btn,btn2,btn3;
    private CheckBox checkBox;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.loginpage);
        Intent intent = getIntent();
        btn=(Button)findViewById(R.id.btn_activity_login_login);
        btn.setOnClickListener(new see());
        GetAllActivity.getInstance().addActivity(this);

        btn3=(Button)findViewById(R.id.button1);
        btn3.setOnClickListener(new edit());
        ((TextView)findViewById(R.id.tv_info_id)).setText("2545433583");
        ((TextView)findViewById(R.id.tv_info_name)).setText("风卷残云");
        ((TextView)findViewById(R.id.tv_info_age)).setText("男");


    }
    class see implements OnClickListener {
        public void onClick(View v) {

            Intent intent = new Intent(LoginPageActivity.this, ShowuserActivity.class);    //收到消息后跳转
            startActivity(intent);
        }
    }
    class edit implements OnClickListener {
        public void onClick(View v) {

            Intent intent = new Intent(LoginPageActivity.this, ModifyActivity.class);    //收到消息后跳转
            startActivity(intent);
        }
    }
    public void goBack(View view) {
        finish();
    }
    }

